#ifndef CONNECTION_H
#define CONNECTION_H

#include <QString>
#include <QDir>
#include <QFileInfo>
#include <QThread>
#include <QCryptographicHash>
#include <QDataStream>


#include <qdebug.h>

class Connection// : public QThread
{

public:
    Connection(QString path1 = 0,QString path2 = 0);
    Connection(const Connection& obj);

    bool setPath1(QString path);
    bool setPath2(QString path);

    QString getPath1() const;
    QString getPath2() const;

    bool hasUpdates();
    bool update();

    QByteArray getHashFromPath(QString absPath);
    QByteArray getHashFromDB  (QString absPath);

private:

    QString _path1;
    QString _path2;

    QDir* _dir1;
    QDir* _dir2;

};

#endif // CONNECTION_H
